﻿using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Security.Cryptography.X509Certificates;

namespace timetable
{
    public class Student : ChekedStudent
    {
        public Dictionary<string,double> scoreDetails = new Dictionary<string, double>();
        public Student()
        {
        }

        public Student(Student student)
        {
            Id=student.Id                  ;
            Name=student.Name              ;
            Sex=student.Sex                ;
            Chinese=student.Chinese        ;
            Math=student.Math              ;
            English =student.English       ;
            Physics=student.Physics        ;
            Chemistry=student.Chemistry    ;
            Biology=student.Biology        ;
            Politics=student.Politics      ;
            History=student.History        ;
            Geography=student.Geography    ;
            Computer = student.Computer;
        }
    }

    // 用来检验数据一致性
    public class ChekedStudent
    {
        public string quality;
        public int groupNumber = 65535;
        public int groupListNumber = 65535;

        public string Name { get; set; }
        public string Id { get; set; }
        public string Sex { get; set; }
        public string Chinese { get; set; }
        public string Math { get; set; }
        public string English { get; set; }
        public string Physics { get; set; }
        public string Chemistry { get; set; }
        public string Biology { get; set; }
        public string Politics { get; set; }
        public string History { get; set; }
        public string Geography { get; set; }
        public string Computer { get; set; }

        public void SetQuality()
        {
            quality = Chinese + Math + English + Physics + Chemistry + Biology + Politics + History + Geography +
                     Computer;
        }
    }
}
